<?php
/**
 * Created by PhpStorm.
 * User: 86158
 * Date: 2021/6/14
 * Time: 1:18
 */

namespace App\Models\news;


use App\Models\Model;
use App\Models\User;

class Comment extends Model
{
    protected $fillable = [
        'user_id',
        'news_id',
        'content',
        'status'
    ];

    public function user()
    {
        return $this->hasOne(User::class,'id','user_id');
    }
}